package com.intelligentcar.springboot.service.serverImpl;

import com.intelligentcar.springboot.bean.ImitateRide;
import com.intelligentcar.springboot.mapper.ImitateRideMapper;
import com.intelligentcar.springboot.service.ImitateRideServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ImitateRideServerImpl implements ImitateRideServer {
    @Autowired
    private ImitateRideMapper imitateRideMapper;

    //新增
    @Override
    public int addpeak(ImitateRide imitateRide) {
        return imitateRideMapper.addpeak(imitateRide);
    }

    //新增
    @Override
    public int addpeak1(ImitateRide imitateRide) {
        return imitateRideMapper.addpeak1(imitateRide);
    }

    @Override
    public int addpeak2(ImitateRide imitateRide) {
        return imitateRideMapper.addpeak2(imitateRide);
    }

    //判断高峰期
    @Override
    public ImitateRide celectImitateRide(ImitateRide imitateRide) {
        return imitateRideMapper.celectImitateRide(imitateRide);
    }

    @Override
    public ImitateRide celectImitateRide1(ImitateRide imitateRide) {
        return imitateRideMapper.celectImitateRide1(imitateRide);
    }
}
